import {baseUrl} from "@/config/url";
//管理员登录
//account   账号
//password  密码
export const login = {
  url:`${baseUrl}/user/login`,
  method:'POST'
}
//获取所有用户信息
export const getAllUser = {
  url:`${baseUrl}/user/getUserAll`,
  method:'get'
}
//根据用户ID获取用户信息
//userId
export const getUserById = {
  url:`${baseUrl}/user/getUserById`,
  method:'get'
}
//删除一条或多条用户信息
//userIds   用户ID集合字符串
//addUserId 添加人ID
export const deleteUser = {
  url:`${baseUrl}/user/deleteUser`,
  method:'delete'
}
//搜索用户信息
//keyword   搜索关键字
export const search = {
  url:`${baseUrl}/user/search`,
  method:'get'
}
//添加一条用户信息
//roleId
//formData
export const addUser = {
  url:`${baseUrl}/user/addUser`,
  method:'put'
}
export const editUser = {
  url:`${baseUrl}/user/editUser`
}
